#include<stdio.h>

struct node
{
    int data,r,l;
} tree[101];

int n,i;
int main(int argc, char const *argv[])
{
    scanf("%d",&n);
    for ( i = 1; i <= n; i++)
    {
     scanf("%d %d %d",&tree[i].data,&tree[i].l,&tree[i].r);
    }
    
    return 0;
}
